.routing-example {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 导航样式 */
.navigation {
  background-color: #343a40;
  color: white;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-brand h2 {
  margin: 0;
  font-size: 1.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background-color: #495057;
}

/* 路由内容样式 */
.route-content {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* 首页样式 */
.home-page {
  text-align: center;
}

.hero-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 60px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: white;
  color: #007bff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: white;
  color: #007bff;
}

.featured-posts {
  text-align: left;
}

.featured-posts h2 {
  margin-bottom: 30px;
  color: #343a40;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-card h3 {
  margin: 0 0 10px 0;
  color: #343a40;
}

.post-card p {
  color: #6c757d;
  margin-bottom: 15px;
}

.btn-link {
  background: none;
  border: none;
  color: #007bff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 关于页面样式 */
.about-page {
  max-width: 800px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1 {
  margin-bottom: 15px;
  color: #343a40;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mission-section,
.team-section,
.tech-section {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px;
}

.mission-section h2,
.team-section h2,
.tech-section h2 {
  margin: 0 0 20px 0;
  color: #343a40;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.team-member {
  text-align: center;
}

.member-avatar {
  font-size: 3rem;
  margin-bottom: 15px;
}

.team-member h3 {
  margin: 0 0 5px 0;
  color: #343a40;
}

.team-member p {
  margin: 0;
  color: #6c757d;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.tech-item {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  font-weight: 500;
  color: #495057;
}

/* 用户列表样式 */
.users-page {
  max-width: 1000px;
  margin: 0 auto;
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.users-header h1 {
  margin: 0;
  color: #343a40;
}

.search-box input {
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
  width: 250px;
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.user-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-avatar {
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-info h3 {
  margin: 0 0 5px 0;
  color: #343a40;
}

.user-info p {
  margin: 0 0 5px 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.user-role {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.btn-view {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-view:hover {
  background-color: #0056b3;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

/* 用户详情样式 */
.user-detail-page {
  max-width: 800px;
  margin: 0 auto;
}

.user-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.back-btn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: #f8f9fa;
}

.user-detail-header h1 {
  margin: 0;
  color: #343a40;
}

.user-detail-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.user-profile-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.user-basic-info h2 {
  margin: 0 0 5px 0;
  color: #343a40;
}

.user-basic-info p {
  margin: 0 0 10px 0;
  color: #6c757d;
}

.user-role-badge {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
}

.user-tabs {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid #dee2e6;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.tab-btn:hover {
  background-color: #f8f9fa;
}

.tab-btn.active {
  background-color: #007bff;
  color: white;
}

.tab-content {
  padding: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.stat-card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-card h3 {
  margin: 0 0 5px 0;
  color: #007bff;
  font-size: 2rem;
}

.stat-card p {
  margin: 0;
  color: #6c757d;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
}

.btn-save {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  align-self: flex-start;
}

.btn-save:hover {
  background-color: #218838;
}

/* 联系页面样式 */
.contact-page {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h1 {
  margin-bottom: 15px;
  color: #343a40;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.contact-item h3 {
  margin: 0 0 10px 0;
  color: #343a40;
}

.contact-item p {
  margin: 0;
  color: #6c757d;
}

.contact-form {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px;
}

.success-message {
  text-align: center;
  padding: 40px;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 10px;
}

.btn-submit {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.btn-submit:hover {
  background-color: #0056b3;
}

/* 404 页面样式 */
.not-found-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.not-found-content {
  text-align: center;
  max-width: 500px;
}

.not-found-content h1 {
  font-size: 6rem;
  margin: 0;
  color: #6c757d;
}

.not-found-content h2 {
  margin: 0 0 15px 0;
  color: #343a40;
}

.not-found-content p {
  margin-bottom: 30px;
  color: #6c757d;
}

.not-found-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 加载状态样式 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #6c757d;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-brand {
    padding: 10px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #343a40;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .hero-section {
    padding: 40px 20px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .users-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .user-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .user-profile-card {
    flex-direction: column;
    text-align: center;
  }
  
  .tab-nav {
    flex-direction: column;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .not-found-actions {
    flex-direction: column;
    align-items: stretch;
  }
}